import 'package:json_annotation/json_annotation.dart';

part 'taskItemDetail.g.dart';

@JsonSerializable()

class TaskDetailItem{
  int taskId;
  String eqptNo; //资产编号
  String position; //位置
  int assetId; //资产id
  int status = 1;

  TaskDetailItem({this.taskId, this.eqptNo, this.position, this.assetId,this.status=1});

  TaskDetailItem.empty();

  //不同的类使用不同的mixin即可
  factory TaskDetailItem.fromJson(Map<String, dynamic> json) => _$TaskDetailItemFromJson(json);

  Map<String, dynamic> toJson() => _$TaskDetailItemToJson(this);
}